class Amodel(object):
  TRANSFORMATION_MAP = { "Red Tree Frog": "mush"        ,
                         "apples":        "apple juice" ,
                         "iPhone":        "toxic waste" ,
                         "Galaxy Nexus":  "toxic waste" }

  @classmethod
  def select_result_for(cls , a_thing):
    return cls.TRANSFORMATION_MAP.get(a_thing , "DIRT")


  def __init__(self):
    self.is_on  = False
    self.thing  = None
    self.result = None

  def add(self , a_thing):
    self.thing = a_thing

  def switch_on(self):
    self.is_on  = True
    self.result = self.select_result_for(self.thing)
